package com.df.twod_sync_bakend.game;

import com.df.twod_sync_bakend.game.entity.PlayerState;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class GameState {
    private Long timestamp;
    private Integer tickCount;
    private Map<String, PlayerState> players = new HashMap<>();

    // getters and setters
    public Long getTimestamp() { return timestamp; }
    public void setTimestamp(Long timestamp) { this.timestamp = timestamp; }

    public Integer getTickCount() { return tickCount; }
    public void setTickCount(Integer tickCount) { this.tickCount = tickCount; }

    public Map<String, PlayerState> getPlayers() { return players; }
    public void setPlayers(Map<String, PlayerState> players) { this.players = players; }
}